Fixed: Wildcard date searches, strict date searches

Should now deal with irregular search terms appropriately; also should now allow for searching using a strict date range.
New: Database statistic query script

Now allows for putting together queries to check statistics in the database. E.g. querying number of pieces within (loose and strict) date ranges, querying number of movements tagged with a particular tag, querying number of pieces/movements tagged with multiple combination of tags, etc.