DB restructuring

Challenges are no longer subdocuments, which will probably make
performance suck but I don't really care for now
Made listing of incoming challenges work