add support for select_for_update