Added db.ctx.close() method to modeler to close database connections. webpy does not do this automatically