implemented insert statement