mantis #76 , included error code.
udpated to filter the netbeans project folder
fixed mantis issue #76. also added query error code