Migrate passwords, functions, and settings table