fixed escaping element names in database, added support for range entries on menus