Fixed db and routes