SQL tool for local DB; Update for online DB