Added documents into database