Adding separate .sql script file for functions