simplify/rename routes, comment out old routes and unused handlers, add db.close() to handler