made changes in conjunction with new SQLadapter() function changes