updated first 2948 lines in DBUtils, to use prepared statements