Fix a dependency bug in the gradle file
Refactor SQL provider