updated database adapter to postgresql and added hostname, not pg