worked more on adding to database