add bg in db