fixed db to add properly