Database lock check for tournaments; formatting