New insert function

Also made check and told few errors ( 'data' variable not prefixed with
_ ) in t forcequit function calls.