appserver: preparing to migrate from sqlite3 to mysql