Clean SQL base