Change resource url
Set router root
Refactor database. Change error
Better errors
oops