Updated all sql to use stored procedures, moved common functions to Data.Core