Added FOR UPDATE option to get queries