added insert to tables