Removed constants for table names in models, removed unnecessary variables, and fixed minor bug in sorting by likes and dislikes