fix concurrent database tests