fix database updates to bids