Perf1

Perform initial database operations in background and speedup copying of pre-populated databases.