addition of postgresql libraries and operation