check statement closed before closing
insert and select limit to columns app and username