Implemented common filter for PyDbLite and SQLite

and updated tests