updated prepopulated db code