Improve my querySQL and updateSQL methods.