Fixed bug in SQLHelper

see title