db problems fixed