Error in database ID and missing default case for elaboration. Fixed it