fixed params using slim
added order by option
rewritten get routes
used doctrine to create queries