Implemented database upgrade routines for v1.0.1.