Exposed libpq interface for executing and getting results.
Added execution and result-fetching.