Code not inserting anything into database

Hello, I am trying to insert data with the following code, but it does not do anything, even if I remove the conditional. It does not even create a new row in the collection. In some other code, I am able to query it, however. Does anyone see what I did wrong?

import {local} from ‘wix-storage’;
import wixWindow from ‘wix-window’;
import wixUsers from ‘wix-users’;
import wixLocation from ‘wix-location’;
import wixData from ‘wix-data’;

wixUsers.onLogin( (user) => {
let userId = user.id;
wixData.query(“Members”)
.eq(“id”, userId)
.count()
.then( (num) => {
if (num === 0){
let toInsert = {
“id”: userId,
“coins”: 40
};
wixData.insert(“Members”, toInsert).then(() => {
console.log(“done!”);
})
.catch( (err) => {
console.log(err);
} );
}
} )
});