gathered values that will be sent to server
cleaned up comments
cleaned up comments
changed script to only include config.php if constants are not defined
cleaned up query statements. attributes are now returned in single rows.