refactor

use redis instead of sqlite to maintain data, use function call instead of http request to trigger update/send actions.