convert PHP script to get conversion rates from api, save them to database, and convert amounts of money to USD.