working on db connections