working on database connections