#1105 Database migration: if file exists, loading from file, otherwise loading from database; before loading, checking if schema tables exist