Fix the lenght of VARCHAR for the project field in the tags and events tables
Test 'live database': Looks like you failed 2 tests of 338 :)

Avoid "Data type unknown" with explicit CAST in log_new_tags sub
Experiment with SIMILAR TO as replacement for REGEXP operator