fix datbase checker