limit table to 1000 rows