fix version detect if old database files lying around