refactor wiki_contrib.sql