move building database to first run