Correcting lot of bugs:
   - Database not correctly updated
   - some kind of error with malformed URL/strings
   - rewrite entirely cut_url routines with better perl regex
   - need more test, but seems to just works