change controller2model into db2model

and vice-versa
adding related route
clean up