it is images_id_seq, not imageid_seq, fix in GRANT statement
[pr0n] / sql /
drwxr-xr-x   ..
-rw-r--r-- 2456 pr0n.sql