databaseFunctions: ajax now returns insert_id & affected_rows when
available. fix bug in deleteGuia