part2
Merge pull request #3 from snurkabill/mini-batch

part2
Database
better managers
added another learning mode during online training
test database
manual merge