Added PDO wrapper and tests