Fix recovery function to return only xa transactions which belongs to current database.