added skeleton code for c postgresql functions