Extended dosql class to allow safe inserts