Added sql_functions