[svn] Add missing SQL changes from prev. commit, also fix mistakenly commented out line. Patch provided by Visagalis.
Original author: w12x Date: 2008-10-22 08:43:09-05:00