Changing the set table and database methods to public