For future reference, the best thing to do is to make a
Backup of your database and settings before you remove anything, then you would have been able to restore your backup to get things back to the way they were.
From where you are now, you should be able to recover everything, though.
The quickest way is likely to be to copy the old PostgreSQL "Data" folder to the exact same path it was in before, and then install the same major version of PostgreSQL (8.3, 8.4, or 9.0) as you had before manually, following the guide in the
Documentation.
However if you play cash games rather than tournaments, and unless you have many millions of hands, I'd personally be tempted to re-import the original hand history files to a new database. The hand history files will be in the PokerTracker 3\Processed folder (from your old computer) by default, and as long as you didn't delete any files you should have all of your hands there.
This will take somewhat longer as you will need to do a
Manual Import and then run housekeeping, but it will mean that you benefit from any import fixes made since you originally imported, and remove any potential issues from your existing database(s).
It will also give you the opportunity to update to a newer version of PostgreSQL, if you want to. This is only worth doing if you were using 8.3, for instance, or have a 64-bit OS and were not using the 64-bit PostgreSQL v9.
If you play tournaments re-importing to a new database will probably not work so well unless you play at a site like Full Tilt and have all of the tournament summary results files - any manually entered results or prizes in your old database would not be transferred this way (unless you happen to have done an export).