Removed bug in database filters.