Changed PostgresQueryString to be more verbose. Added basic query handling in AppDelegate.