Rewrote model.connect() to use redis and mysql