Add version and target database checks