corrected DB creation