added filter creation function for db accessor