Add mysqli_fetch_object to database.php

Could be usefull to fetch the query resultset as object