categories pages now working
changed query() function to return array from PDOStatement::fetchAll instead of PDO::query. added int_query() function to take place of old query() function