populating databse correctly