free json in case of error
flush authentication cache
added `/_api/database/user` method
added test