Fixing references to the database tables, so that we use the constants defined in constants.php. This way we can change the table names that we are using.