Implemented persistent database connections.