Updated Java server for SQL interface.