wrangling with db prepopulation