got sql library working