Subscribing to MySQL and Java