Changed functions for inserting datasets to tables and redesigned tables

2 jobs for master in 1 minute and 36 seconds (queued for 2 seconds)