where_filter added for layer queries. DB model and mapfile rake task enhanced