Replacing mongo with mysql DB.