updated db schema and added redis