updated for redis and few fixes in regards with database connection
swichted bonecp to hirokcp