WSP interview question

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