rewrite QFairy, DO NOT use MySQL