Move filter data structure to db, including adapter
Change filter data structure to db