database sql fixed