fixing issues with deleting and renaming buffers with the postgres backend