fix /db/* and /index
add GET /trainer/:id