PostgreSQL config refactor and improvement =)