Read select box attributes from tables, edit attributes