moved database population to the building phase