Fixes for BrowserCMS 3.5.x

Edited migrations so they would pass for BrowserCMs 3.5.x
Fix an order by that pointed to a non existing table