added db_reconstruct_population() function