fixed a minor bug in sqlitehelper