Added some SQL related methods