Adds data filtering support to local_db