SQLite code done