Add for update and lock in share mode method to select query