We should set the application name when connecting to postgres
As described in postgres documentation we should set the application name to ease the debugging when querying postgres.
The solution use fallback_application_name
to allow the users to override the name using the environment variable (useful when serving through uwsgi as sys.argv[0]
will be uwsgi).