make db saving and add unique for names