Added feature to write data units attributes to database table

2 jobs for master in 2 minutes and 17 seconds (queued for 16 seconds)