Added data to database and displayed it