Add creation function to install script for inserting postgres function.