database locked fixed