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

I am using PostgreSQL with Express.js. 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 .

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

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");
    catch (err) {

Tysm for help in advance!