added basic insert functionality