Mphasis interview question

How to work with DB