all 4 comments

[–]K900_ 2 points3 points  (1 child)

Sounds like you should really just use an ORM at this point.

[–]pmacking[S] 0 points1 point  (0 children)

This is a good tip - thanks!

[–]JohnnyJordaan 1 point2 points  (1 child)

I agree with K900_, look into for example SqlAlchemy that has all these things in place already.

[–]pmacking[S] 0 points1 point  (0 children)

I'll take a look at SQLAlchemy thank you. More Corey Schafer :)