Fix bug #3: Inserting notes on PostgreSQL
Send HTTP 401 on invalid token