cursor.execute('INSERT INTO ANALYTICS (SHORT_URL) VALUES ("'+host+"/"+short_url.lower()+"\")")
returnredirect(url)
returnredirect(url)#I use temp redirect here, because the owner of a link can delete it. If then the link is reused, the user will maybe redirected to the wrong page