Added better check for SQLite