update seed code with and use update_all instead