Fixed class filter method for case insensitive search on PostgreSQL