added nextRow, newDB, and printResults functions. added standard values for private variables