Add accounting.pm. SQL logic for inline accounting