Implement query builder for PDO statements