connect invoice history to db(directly)