WSP Interview Question

How would you design an application that interact with internal database?