upload not working, but sqlite calls should be