migrates db and adds views