PHP Abstraction Hook for SQL Databases