Added GetStatus stored procedure