Fix db_get_table calls in move attachments pages