removing function that was added some time ago just for backwards compatibility with older versions of PostgreSQL
removing unused functions