started work on api and database connections