Proposal: use sqlalchemy instead of postgresql for the db store See asyncz for an example. This would be cleaner and enable the user to use different databases than postgresql.