Working URL shortener code which also logs the redirect activity. Still need a way to insert rows via the web