write from budget in database