fixed DATABASE error