getting database back on track