add bookkeeping sql