Corrected database errors