fixing sqlite3 command