Bugfixed insert into table bit, found a bug in save function