Move functions.sql into subdirectory.