Update entity to DB