dealing with db in budget