Having all the functions in one script won't make a difference if they're not all called during the single execution of a script.
Run these three SQL commands and see if you get results returned - if you don't something definitely is wrong
create temporary table foo (name char(30) );
insert into foo values ('stew'),('curry'),('prawns');
select * from foo;