Add tests for JSON game filters.
Add date extraction functions to postgresql.