code no longer dependent on SQLITE database. ISSUES: js does not read XML anymore, on iOS deployment