[Added] First querying the database (PostgreSQL)