changed some tabs to spaces
fixed an bad return from Result->fetch_array()