Did you have it working OK before the ongame update?
Do you use the cache in PAH? If not, you should try it, this will speed things up a lot, especially if you have a lot of, or very large, databases.
Options -> Preferences -> Databases.
Please note when you first build the cache it can take a long time, so run it overnight or something.
(If you are using postgres 8.3 databases, the cache won't work.)