database connections fixed