Add new SQL functions and table