Database API

configured database api for login and profile