Fixed a bug in MvcDatabase.php which required an orderby when none is required