Corrected DB typing