Fixes and improvements.
Cleanup database information and files.
Save execution time and number of iterations in the solution file.