PHP Database Abstraction and Boilerplate