getObject from postgress repository


git-svn-id: svn://oss.beweb.dbc.dk/sync_php/php/OpenLibrary/OpenSearch/trunk@74849 30e9dc4a-7611-4fbc-83ba-eecf79b76bd0
some refactoring


git-svn-id: svn://oss.beweb.dbc.dk/sync_php/php/OpenLibrary/OpenSearch/trunk@74856 30e9dc4a-7611-4fbc-83ba-eecf79b76bd0