Revert "connected invoice history to db"

This reverts commit 096ccd88e4da71b3d1abfadc0059fbf03fc6c1bd.