Simple script to access remote mysql and turn into json