Adds Stack, Time and table in DB
Adds basic fragment
Fixes crash with no id specified for fragment