The link below was very helpful in the setup of the PostgreSQL database.
http://fedoraproject.org/wiki/Koji/ServerHowTo