corrected db problems