First implementation of redis db