Added functiontality for sql procedures
Finish sql procedures refactoring