Added cache to DB-fetch and learning results
Added effective selection of Learning method
Fixes and refactor of learning parameters