Update classes.php

added function fetch_array to db class