Added some sql utils