Generate a seed file from database data