Improvements on SQLManager.java