roughly working with some hard coded values and other commented out stuff. hashes and stores hash and path into database under db/