Add database migration, main views