few new SQL functions