fixes #39. use SELECT FOR UPDATE -> UPDATE instead of UPDATE to work better with locking in MySQL