automatically persists token and manage unicity
catch integrity sqlstate error