database: Route now parsed and put into function in server.hs.