replaced named params in sql procedures with dollar variables