updated the _set_database method to use a class variable for the database connection - this way, we don't override the global CI database variable