add auto migration to database init function