Huge refactor. Now using rcache package to provide Redis cache to database operations