moved all the feed db logic to separate module