configure pg database, and lighttpd