get invoice from db
connected invoice history to db