workin on db

Now suite save is working. Next all other sqls will be done.