update sql base file