a simple URL shortener with DB validations