Added Javadoc comments
Now the entire database is cleaned when the username changes in
preferences screen