db version check & schema update