working out production database