Update image SQL that fails postgres