In the previous article, we've created a Fuel Consumption Api which uses dictionary as a database. The biggest disadvantage of this solution is lack of data persistence. To make our application more useful we'll use SQL database instead of Python dictionary. To achieve this the perfect choice is SQLAlchemy - Python SQL Toolkit and Object Relation Mapper.
There are plenty of tools for metrics storage and analysis. Today I'd like to present to [InfluxDB](https://www.influxdata.com/) - a solution that was used for a company I used to work for. But since January, InfluxDB is in version 2.0-beta, I will also share my experience with Influx 1.0 in the newest version. So let's start with the basics.