appserver: preparing for insert.xml to insert gcm_regid
appserver: separate out db_functions and xml_functions
appserver: adding xml and db functions