Migrates the DB when the app boots

[#76892318]