Add user ratings table, which depends on user logs. Begin to add indexes on foreign keys