Queried data is now added to PHP array