added pryrc and initial postgres connection methods