added redis db support