Revert "remove active record and add redis"

This reverts commit f1d2fa1dab742ee5a7ba4b452e2a82bba5b85296.