forgot to close db connections fixed