add functionalities to sqlpg