changes from mysql to postgresql
finish layout and routes