update-cache script for postgresql