Change back to always establishing the database connection when creating the database object.
This is because most authentication requests now require the database connection, so almost every request will require a database connection.