fix for generating production database