Changed to use Postgresql and Redis