fix compatible issue with sqlite3