switches to .sql endings for functions