Improved editor, enabled updating in database. Some minor improvements