Added PDO functionality to database module