Added GetType stored procedure