fix bug with database key comparers