fix race condition in populateDatabase