Splitted the db package into multiple files
Better error handling for Redis errors