Add tag initialization SQL and helper Javascript functions.