started implementing the db connection