added automatic database migration to the fab files