creating receipt/history db helper