postgresql – Is query correct? Cannot read property ‘query’ of undefined

I am using PostgreSQL with Express.js. app.post for creating new user in database! But on testing from postman passing JSON object I get error in console that Cannot read property 'query' of undefined .

pool.query(
            "INSERT INTO user(user_id,name,email,dob,balance) VALUES($1,$2,$3,$4,$5) RETURNING *",
            (user_id,name,email,dob,balance)
        );

Postman scrrenshot!

enter image description here

Same happens when I try get all users!

app.get('/profile',async(req,res) => {
    try {
        const allDetails = await pool.query("SELECT *FROM user");
        res.json(allDetails.rows);
    }
    catch (err) {
        console.error(err.message);
    }
});

Tysm for help in advance!