connecting to db, methods in progress