Started building db connection for api calls

and defined schema