Remove use of db_num_rows for select queries which return data

i.e. db_fetch_array is also called following the call of db_num_rows
+1 to that, cleaner and more efficient.