improve db connections