Changed to SQLite3 commands