Fixed residual broken endpoints that don't use middleware to close/handle the DB connections