HTML generation for relational fields, enum fields and set fields in grid edit, transfered to three separate functions in libraries/sql.lib.php