[db] first pass on migration for the app