String query = "create table emails " +
                       "(ID int, " +
                       "To varchar(20), " +
                       "From varchar(20), " +
                       "Message varchar(50))";




                   this java statment looks right. but getting a syntax error.

TO is a reserved word in SQL.