Corrected database bug caused by my earlier commit