database seed refactor