Fixed bug in SQLHelper