fixed db problem
added test for all routes