Implemented persistent database connections.
Added required methods in BaseDatabaseWrapper.