Added a function that finds jury by cid
Fixed stored procedure for jury