Are you running sqlite3/gdb as root?