Implemented database upload. Fixes #75