move databases variable to attributes