Added redis support and fixed sql statement in bootstrap file.