Fix tests, remove 'type' attribute from 'databaseversion' table