add docuemnts and database