upload now works for documents, but not inserted into db yet