New utilities for database related work: engine wrapper that ensure only one operation is run at a time, and base transformation with "db" parameter (engine may be a better name though, as it normally expects an sqlalchemy engine).