added removed status and fix for old databases