Corrected database template