Algorithms for Flare prediction, Read and write access layer for Prediction Config and Prediction Database