The URL Shortener flask app uses the following libraries. random, string, psycopg2 and postgresql for the database.
I used the string library to get uppercase, lowercase
letters and numbers, and random to generate 6 random letters,
The connection to postgresql is made with the help
of psycopg2 library.
The script checks to see if the input link already has
a generated link, if not it makes one