adding back some old methods to pull data from postgres