Simple SQL query library