REST Web Service to fetch and insert into a MySQL Database