Repaired callback structure of insertUrl and routing functions.
insertUrl now correctly uses a callback to return feedback regarding whether writing to the database succeeded or failed.