postgresql plugin: Connect to the database in the read function.