add files and update database