updated readme

readme now contains a bsd style source license.
complete insert query routine