Corrected bug regarding value stored in database for radio buttons