Converted db_insert to entity_save().