db and routes  finished