Fixed the indentation on the entire DB.java file

I've finally discovered an useful eclipse feature: Source->Correct Indentation
Added a SimpleDateFormat to manage dates in DB.java

The use of this object should be more elegant compared to
the old method of concatenating/parsing strings "by hand".