Revert to old way, add getAssocArray function to db.php.