Some optimizations. Basic RMSE test for 100k database