makes the procuction database work