Modify script for Shrink database - added query for check process