added db check when uploading/dling from server. send/dl file is no longer hard-coded.