db fixing