Make the contact modal field work on non sql db's

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31838&start=0