adding SQL base