update database script to put everything in one table