improving redis support to save database file to blob