Create Query Engine

I use this one quite a bit in my python scripts. I also tend to implement it into a class I am already working with. What makes this so useful for me is the ability to just feed it any query and select the return type. Creating databases requires something other than cur.fetchone or cur.fetchall so in this case it return True to show that it was completed.

It's simple, easy and may save you some code reuse.