fixed sql query
fixed class path problems