use promices for reading debitoor token form database as more readable code