Adds session.close() that had been forgotten in counter.py

The number of mysql conenctions should decreqse now.

TODO:
Future thoughts to dramatically increase this : Use a database pool.
Threads would simply add new write/commit requests and only one entity actually accesses the database.

This would probably reduce the amount of problems of concurrent connections.