REDBOX-234 Fixed database connections