adds result type to mysql_fetch_all