#173 Post metrics to local database to minimize CloudWatch API accesses

Many changes here, please review thoroughly.
I think we should also `DELETE` that records, right after `SELECT`. Otherwise, we'll be sending duplicate data into CloudWatch