Changing $query variable to $pdo
Adding buildWhere method