replaced database sql schema