pub fn update<T>(entity: T, conn: &PgConnection) -> Result<T, Error>where T: NameTable + QueryableByName<Pg> + Serialize + Unpin + Send,