fixed new adding to database