got db functionality, uploading works now, mash and rings and stuff are commented out