Dynamic PDO Database Class