simultaneous-use check via sql