connect db implicitly in lib.php; record user progress in redirect.php; happy chinese lunar new year~