saving a proper token record to the db