Uploaded exports and wrote db functionality.