Massive code refactoring

Code climate
replace find queries with where
match routing is replaced with get/post