Adding alias parameters to SQL functions