Install and Configure PostgreSQL Task -Failed

I got the error message but I have granted permission to this user. Attaching screenshots:

Screenshot from 2020-08-25 11-37-22
The task failed with error:
'PostgreSQL' is not configured correctly, either user 'kodekloud_aim' and database 'kodekloud_db2' does not exist or user 'kodekloud_aim' does not has appropriate permissions on database 'kodekloud_db2' on DB Server

Could someone help on this? Thank you!

@Inderpreet Can you please have at look at this?