Moved redis import out of global scope. Fixed paedb value.