Fix some problem in SQLite Handler