Added db versioning.