Don't write None to local cache
Set rate in cache after reading from db
Fixed bug preventing updated rates being saved to db
Bumped version to 0.5.2