fixed db mistake