Added file upload and basic db backend functionality