Made SQLAlchemy mapping abide by the DRY principle, as well as a bunch of changes to the neural network schema.