put select_for_update inside a transaction
added wait page during create session to prevent request timeouts when large sessions are created.